package com.koudai.reader.conponment;

import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.RelativeLayout;

import com.koudai.reader.android.R;

public class GetScoreDialog extends Dialog {

    private RelativeLayout score1;
    private RelativeLayout score2;
    private RelativeLayout score3;
    private RelativeLayout score4;
    private RelativeLayout score5;
    private RelativeLayout score6;
    
    public GetScoreDialog(final Context context) {
        super(context);
        
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
        
        setContentView(R.layout.get_score);
        
        score1 = (RelativeLayout) findViewById(R.id.get_score_1);
        score2 = (RelativeLayout) findViewById(R.id.get_score_2);
        score3 = (RelativeLayout) findViewById(R.id.get_score_3);
        score4 = (RelativeLayout) findViewById(R.id.get_score_4);
        score5 = (RelativeLayout) findViewById(R.id.get_score_5);
        score6 = (RelativeLayout) findViewById(R.id.get_score_6);
        
        //5 - 500
        score1.setOnClickListener(new GotoPayOnclickListener((Activity)context, 500, "recharge_five"));
        score2.setOnClickListener(new GotoPayOnclickListener((Activity)context, 1500, "recharge_fifteen"));
        score3.setOnClickListener(new GotoPayOnclickListener((Activity)context, 5000, "recharge_fifty"));
        score4.setOnClickListener(new GotoPayOnclickListener((Activity)context, 10000, "recharge_hundred"));
        score5.setOnClickListener(new GotoPayOnclickListener((Activity)context, 20000, "recharge_2hundred"));
        
        score6.setOnClickListener(new View.OnClickListener() {
            
            @Override
            public void onClick(View v) {
                // TODO Auto-generated method stub
                AdWallManager.openAppOffers((Activity)context);
            }
        });
    }

}
